<?php
namespace app\common\validate;

use think\Validate;

class DictTypeValidate extends Validate
{
    // 验证规则
    protected $rule = [
        'type_name|字典分类' => 'require',
        'type_id|分类标识'   => 'unique:dict_type',
    ];
    //提醒消息
    protected $message = [
        'type_name.require' => '请输入字典名称',
    ];
}